home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Game-Power
/
Amiga Game-Power.iso
/
anwendungen
/
gw print
/
cms.doc
< prev
next >
Wrap
Text File
|
1994-05-20
|
2KB
|
59 lines
CMS 2.0 - ] Mike SCARY Scalora [ - PLink: SCARY
This MODULE is public domain. Freely distributable as long as this
notice stays in.
This program was originally uploaded to PeopleLink's Amiga Zone. The
Amiga Zone has well over 3000 members, and a library of thousands of
public domain files. If you're interested in joining us, call
800-524-0100 (voice)
or 800-826-8855 (modem).
2.0 - 11/28/87 - ] Mike SCARY Scalora [ -
Put in MAIN (saves space (allocates global vars on stack))
Took out RunTimeErrors
Took out WriteInt, not used
Added checking for CTRL-C
This arc file contains a program called CMS. CMS is a program from
VM that writes execs (batch files). The syntax of CMS is:
CMS [ > batchfile ] [ pattern [ path ] ]
Where: pattern - is a *-? filename matching pattern (like MS-DOS).
path - is a path to a directory/device.
batchfile - is the name of the batch file that CMS will create.
CMS let's you use wildcards with programs that don't use them.
It's hard to explain how CMS works, so I'll just show you an example
of how it would be used. If I had a bunch of files in my current dir
that I wanted to run UNARC on. All of the files have the '.arc' ending.
Here how to do it:
CMS >MyBatchFile *.arc
EXECUTE MyBatch UNARC
This would run UNARC on all the files with the '.arc' ending on RAM:.
If you didn't want to see any of the messages from UNARC, you could use:
EXECUTE MyBatch "UNARC >NIL:"
The first argument goes before the filename and the second goes after
the filename. Try this one at home:
EXECUTE MyBatch "ECHO *"" "is an arc file!*""
The batch file that CMS creates would look like this:
.key arg1,arg2
; Created by CMS 1.0 - ] Mike SCARY Scalora [ - PLink:SCARY
; pattern used : '*.arc'
; directory searched : ''
<arg1> SCIMPI.arc <arg2>
<arg1> SCIMPIM2.arc <arg2>
<arg1> DODGE.arc <arg2>
<arg1> CMS.arc <arg2>
and so on.